/*
 * @Author: caijw 
 * @Date: 2018-11-11 12:02:22 
 * @Last Modified by: caijw
 * @Last Modified time: 2019-01-05 17:00:33
 * 
 * 公用头部
 */

import React, { Component } from 'react';
import './wxtip.less';

import {withRouter} from 'react-router-dom';

class WxTip extends Component {
    //返回上一级
    back = () =>{
        this.props.history.go(-1);
    }
    //挂载前
    componentWillMount(){
        console.log(this.props);

    }
    //渲染
    render() {
        return (
            <div class="wxtip" style={{display:this.props.show}}>
                <span class="wxtip-icon"></span>
                <p class="wxtip-txt">点击右上角<br/>选择在浏览器中打开</p>
            </div>
        )
    }
}
export default withRouter(WxTip);